﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeftMenuMaintain.aspx.cs"
    Inherits="demo.Pages.LeftMenuMaintain" %>

<%@ Register Assembly="Water" Namespace="Water.Web.Controls" TagPrefix="page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style>
        html, body
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" style="height: 100%;">
    <page:ObjectHierarchicalDataSource ID="ObjectHierarchicalDataSource1" runat="server"
        TypeName="demo.Objects.BLL.Menu" DataIDField="menuid" DataParentIDField="parentid"
        RootParentID="0">
    </page:ObjectHierarchicalDataSource>
    <div style="height: 100%;">
        <page:Container ID="Container1" runat="server" TitleTextPrompt="menu.menutitle" Promptable="false"
            PackageType="Div" DisplayBorder="false">
            <ItemTemplate>
                <page:TreeView ID="TreeView2" runat="server" DataSourceID="ObjectHierarchicalDataSource1"
                    ExpandDepth="1" ImageSet="Arrows" AutoGenerateDataBindings="False" OnTreeNodeDataBound="TreeView2_TreeNodeDataBound">
                    <DataBindings>
                        <asp:TreeNodeBinding  TextField="text" PopulateOnDemand="true" ToolTipField="tooltip" ImageToolTipField="imagetooltip"   Target="menu_update"/>
                    </DataBindings>
                </page:TreeView>
            </ItemTemplate>
        </page:Container>
    </div>
    </form>
</body>
</html>
